import request from '@/utils/request'

// 查询表格列数据列表
export function listColumn(query) {
  return request({
    url: '/showreport/showtablecolumn/list',
    method: 'get',
    params: query
  })
}

// 查询表格列数据详细
export function getColumn(showColumnId) {
  return request({
    url: '/showreport/showtablecolumn/' + showColumnId,
    method: 'get'
  })
}

// 新增表格列数据
export function addColumn(data) {
  return request({
    url: '/showreport/showtablecolumn',
    method: 'post',
    data: data
  })
}

// 修改表格列数据
export function updateColumn(data) {
  return request({
    url: '/showreport/showtablecolumn',
    method: 'put',
    data: data
  })
}

// 删除表格列数据
export function delColumn(showColumnId) {
  return request({
    url: '/showreport/showtablecolumn/' + showColumnId,
    method: 'delete'
  })
}
// 定义表下拉
export function columnCombo(tableId) {
  return request({
    url: '/report/column/columnCombo/'+ tableId,
    method: 'get'
  })
}
